import http from '@/utils/http';

const user = {
  //获取用户环境(用户信息,已授权模块,用户桌面快捷键)
  setting() {
    let url = '/User/GetSetting';
    return http.post(url);
  },
  //
  getUsers() {
    let url = '/User/getUsers';
    return http.get(url);
  },
  //用户视图
  query(params: any) {
    let url = '/User/Query';
    return http.post(url, params);
  },
  //用户详情
  detail(id: Number) {
    let url = '/User/Detail';
    let params = { id: id };
    return http.get(url, params);
  },
  //用户保存
  save(module: Object) {
    let url = '/User/Save';
    return http.post(url, module);
  },
  getChatUsers() {
    let url = '/User/GetChatUsers';
    return http.get(url);
  },
};
export default user;
